// BuddyListDlg.cpp : implementation file
//

#include "stdafx.h"
#include "firstClient.h"
#include "BuddyListDlg.h"


// CBuddyListDlg dialog

IMPLEMENT_DYNAMIC(CBuddyListDlg, CDialog)

CBuddyListDlg::CBuddyListDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CBuddyListDlg::IDD, pParent)
{

}

CBuddyListDlg::~CBuddyListDlg()
{
}

void CBuddyListDlg::addBuddy(xp_str name)
{
	HTREEITEM prt = m_display.InsertItem(L"parent",TVI_LAST);
	m_display.InsertItem(name,prt,TVI_ROOT);
}

void CBuddyListDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_TREE1, m_display);
}


BEGIN_MESSAGE_MAP(CBuddyListDlg, CDialog)
END_MESSAGE_MAP()


// CBuddyListDlg message handlers
